package br.com.absolutech.study.chapter7.test05;

import java.util.LinkedList;
import java.util.Queue;

public class QueueTest {

	public static void main(String[] args) {
		
		Queue<String> q = new LinkedList<String>();
		q.add("Veronica");
		q.add("Wallace");
		q.add("Duncan");
		showAll(q);
	}
	
	public static void showAll(Queue q) {
		q.add(new Integer(42));
		while (!q.isEmpty())
			System.out.println(q.remove() + " ");
	}
}
